import setting
if setting.DB_ENGINE == 'mysql':
    import mysql
    model = mysql
    from mysql import *
elif setting.DB_ENGINE == 'mongo':
    import mongo
    model = mongo
    from mongo import *
else:
    raise ValueError("DB_ENGINE must be mysql/mongo")


__all__ = ['user', 'model']
